<!--
 * @FilePath     : /study_code/layui/12-5-2.html
 * @Description  : Form lay-skin 属性设置 复选主题
 * @Date         : 2025-04-07 16:04:35
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-04-07 16:04:43
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="/layui/dist/css/layui.css" />
  </head>
  <body>
    <form class="layui-form" action="">
      <!-- 无 -->
      <div class="layui-form-item">
        <label class="layui-form-label">复选框</label>
        <div class="layui-input-block">
          <input type="checkbox" name="arr[0]" title="选项1" />
          <input type="checkbox" name="arr[1]" title="选项2" checked />
          <input type="checkbox" name="arr[2]" title="选项3" />
        </div>
      </div>

      <!-- 值为 primary -->
      <div class="layui-form-item">
        <label class="layui-form-label">标签框</label>
        <div class="layui-input-block">
          <input type="checkbox" name="arr1[0]" lay-skin="primary" title="选项1" checked />
          <input type="checkbox" name="arr1[1]" lay-skin="primary" title="选项2" />
          <input type="checkbox" name="arr1[2]" lay-skin="primary" title="选项3" />
        </div>
      </div>

      <!-- 值为 tag -->
      <div class="layui-form-item">
        <label class="layui-form-label">标签框风格</label>
        <div class="layui-input-block">
          <input type="checkbox" name="arr1[0]" lay-skin="tag" title="选项1" checked />
          <input type="checkbox" name="arr1[1]" lay-skin="tag" title="选项2" />
          <input type="checkbox" name="arr1[2]" lay-skin="tag" title="选项3" />
        </div>
      </div>

      <!-- 值为 switch -->
      <div class="layui-form-item">
        <label class="layui-form-label">开关风格</label>
        <div class="layui-input-block">
          <input type="checkbox" name="arr1[0]" lay-skin="switch" title="选项1" checked />
          <input type="checkbox" name="arr1[1]" lay-skin="switch" title="选项2" />
          <input type="checkbox" name="arr1[2]" lay-skin="switch" title="选项3" />
        </div>
      </div>
    </form>
    <script src="/layui/dist/layui.js"></script>
    <script>
      layui.use(['form'], function () {
        var form = layui.form
      })
    </script>
  </body>
</html>
